package com.nlp.visualization.pojo.lda;

/**
 * @author LXM
 * @Title: LDATheme
 * @Description: LDA的主题POJO
 * @date 2018/3/5下午2:36
 */
public class LDATheme implements Comparable {

    int num;
    String name;
    float probability;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getProbability() {
        return probability;
    }

    public void setProbability(float probability) {
        this.probability = probability;
    }

    public LDATheme(int num, String name, float probability) {
        this.num = num;
        this.name = name;
        this.probability = probability;
    }

    public LDATheme() {
    }

    @Override
    public int compareTo(Object o) {
        return (int) (((LDATheme) o).getProbability() - this.getProbability() * 100000000);
    }
}
